package com.hades.example.java.refactoring.before.c11.c11_8_extract_interface;

public class Example {
    public static void main(String[] args) {
        Employee employee = new Employee(5, false);
        Employee employee2= new Employee(5, true);

        TimeSheet timeSheet = new TimeSheet();
        double  payment = timeSheet.charge(employee,10);
        double  payment2 = timeSheet.charge(employee2,10);
        System.out.println(payment);
        System.out.println(payment2);
    }
}
